package com.tongji.travelplan.unitstub;

import com.tongji.travelplan.beans.ScenicspotBean;
import com.tongji.travelplan.dao.SpotKindDao;

public class testSpotKind {
	public static void main(String[] args)
	{
		ScenicspotBean scenicspotBean = new ScenicspotBean();
		scenicspotBean.setId(11);
		//System.out.println(scenicspotBean.getId());
		//KindDao kindDao = new KindDao();
		SpotKindDao spotKindDao = new SpotKindDao();
		spotKindDao.getKindForSpot(scenicspotBean);
		System.out.println(scenicspotBean.getKindArrayList().size());
		for(int i = 0 ; i < scenicspotBean.getKindArrayList().size() ; i++)
		{
			System.out.println("id:"+scenicspotBean.getKindArrayList().get(i).getId());
		}
	}
}
